package com.hu.dal.jdbc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class UserDaoImpl implements UserDao {

    @Autowired
    private JdbcTemplate jdbc;

    @Override
    public void create(String name) {
        jdbc.update("insert into user(name) values(?)", name);
    }

}
